package com.java1412.service;

import org.springframework.stereotype.Component;

/**
 * 统一为接口的异常方法进行处理
 *
 * @author java1412
 * @create 2022-09-02 11:48
 */
@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "----PaymentFallbackService\t fallback-paymentInfo_OK----";
    }

    @Override
    public String paymentInfo_Timeout(Integer id) {
        return "----PaymentFallbackService\t fallback-paymentInfo_TimeOut----";
    }
}
